package com.edu.bhu.admin.domain;

import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 租房申请对象 hou_apply
 * 
 * @author zhangkeyi
 * @date 2022-02-22
 */
public class HouApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租房申请唯一标识 */
    private Long applyId;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 关联租房id */
    @Excel(name = "关联租房id")
    private Long houseId;
    private HouHouse houHouse;

    /** 关联用户id */
    @Excel(name = "关联用户id")
    private Long userId;
    private SysUser sysUser;

    /** 申请月数 */
    @Excel(name = "申请月数")
    private Long month;

    /** 1.等待审批 2.申请成功 3.申请失败 */
    @Excel(name = "1.等待审批 2.申请成功 3.申请失败")
    private Long status;

    /** 1.已支付 2.未支付 */
    @Excel(name = "1.已支付 2.未支付")
    private Long pay;

    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMonth(Long month) 
    {
        this.month = month;
    }

    public Long getMonth() 
    {
        return month;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setPay(Long pay) 
    {
        this.pay = pay;
    }

    public Long getPay() 
    {
        return pay;
    }

    public HouHouse getHouHouse() {
        return houHouse;
    }

    public void setHouHouse(HouHouse houHouse) {
        this.houHouse = houHouse;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("applyId", getApplyId())
            .append("time", getTime())
            .append("houseId", getHouseId())
            .append("userId", getUserId())
            .append("month", getMonth())
            .append("status", getStatus())
            .append("pay", getPay())
            .toString();
    }
}
